package MyFront.Controller;

import MyFramePro.Domain.ResponseResult;
import MyFramePro.Service.Impl.LinkServiceImpl;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@CrossOrigin    //跨域的注解
@RestController
@RequestMapping(value = "/link")
public class LinkController {

    @Resource
    private LinkServiceImpl linkService;

    /**
     * 这里是查询友链的功能
     */
    @GetMapping(value = "/getAllLink")
    public ResponseResult getAllLink(){

        return linkService.getAllLink();
    }
}
